package behaviorpattern.memento;

public class Client {

	public static void main(String[] args) {
		Originator o = new Originator();
		o.setState("On");
		o.show();
		
		CareTaker c = new CareTaker();
		c.setMemento(o.createMemento());
		
		o.setState("Off");
		o.show();
		
		o.setMemento(c.getMemento());
		o.show();
	}

}
